function uniq(arr) {
    return Array.from(new Set(arr))
    return new Set(arr).size() == arr.length
    const newArr = []
    for(let i = 0; i < arr.length; i++) {
        if(arr.indexOf(arr[i]) === arr.lastIndexOf(arr[i])) {
            newArr.push(arr[i])
        }
    }
    return newArr
} 
uniq([1,2,1,1,3,4])